function changecontent(tab_active, tab_none1, tab_none2, content_block, content_none1, content_none2){
	return function(){
		tab_active.className = "tab-item active";
		tab_none1.className = "tab-item";;
		tab_none2.className = "tab-item";;
		content_block.style.display = "block";
		content_none1.style.display = "none";
		content_none2.style.display = "none";
	}
}
EventUtil.addHandler(window, "load", function(){
	var news_tab = getEl("news_tab");
	var order_tab = getEl("order_tab");
	var com_tab = getEl("com_tab");
	var news_content = getEl("news_content");
	var order_content = getEl("order_content");
	var com_content = getEl("com_content")

	EventUtil.addHandler(news_tab, "click", 
		changecontent(news_tab, order_tab, com_tab, news_content, order_content, com_content));

	EventUtil.addHandler(order_tab, "click", 
		changecontent(order_tab, news_tab, com_tab, order_content,news_content,com_content));

	EventUtil.addHandler(com_tab, "click", 
		changecontent(com_tab, order_tab, news_tab, com_content, order_content,news_content));
});

